package com.whu.zqm.service;

import com.whu.zqm.domain.Products;
import com.baomidou.mybatisplus.extension.service.IService;
import com.whu.zqm.domain.Suppliers;
import com.whu.zqm.domain.prosup;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqm
 * @since 2022-10-28
 */
public interface IProductsService extends IService<Products> {

    public List<Products> getAll();

    public Products addProduct(Products p);

    public Products getProduct(long id);

    public void updateProducts(long id, Products p);

    public void deleteProducts(long id);

    public List<Products> getBetweenNum(int num1, int num2);

    public void deleteAll();

    public void addSuppliers(int id, Suppliers s);

    public List<prosup> finAllProsup();

}
